package com.example.demo.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.demo.entity.ExamUser;
import com.example.demo.mapper.ExamGroupMapper;
import com.example.demo.service.ExamUserService;
import com.example.demo.mapper.ExamUserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author 18364
* @description 针对表【exam_user】的数据库操作Service实现
* @createDate 2023-11-09 10:51:27
*/
@Service
public class ExamUserServiceImpl extends ServiceImpl<ExamUserMapper, ExamUser>
    implements ExamUserService{

    @Autowired
    ExamUserMapper examUserMapper;
    @Override
    public int deleteuser(Integer id) {
        int re=examUserMapper.deleteById(id);
        return re;
    }

    @Override
    public ExamUser selectById(Integer id) {
        ExamUser examUser=examUserMapper.selectById(id);
        return examUser;
    }

    @Override
    public ExamUser login(String loginInfo,String password) {
        ExamUser examUser= examUserMapper.login(loginInfo,password);
        return examUser;
    }

    @Override
    public List<ExamUser> selectGroup(Integer id) {
        List<ExamUser> list=examUserMapper.selectGroup(id);
        return list;
    }

    @Override
    public ExamUser selectByIdCard(String loginInfo) {
        ExamUser examUser= examUserMapper.selectByIdCard(loginInfo);
        return examUser;
    }
}




